import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    routes: [
      {
			path: '/',
			redirect: '/dealt'
      },
      {	
      path: '/',
      component: () => import(/* webpackChunkName: "home" */ '@/components/common/Home.vue'),
      meta: { title: '自述文件' },
      children: [
        {
        path: '/dealt',
        component: () => import(/* webpackChunkName: "query" */ '@/components/page/be_dealt_order.vue'),
        meta: { title: '待办虚机开通' }
        },
        {
        path: '/dealt_equipment_managed',
        component: () => import(/* webpackChunkName: "query" */ '@/components/page/be_dealt_order_equipment.vue'),
        meta: { title: '待办设备托管' }
        },
				{
				path: '/dealt_other',
				component: () => import(/* webpackChunkName: "query" */ '@/components/page/BeDealtOrderOther.vue'),
				meta: { title: '待办风险操作' }
				},
        {
          path: '/init',
          component: () => import(/* webpackChunkName: "query" */ '@/components/page/initiate_form.vue'),
          meta: { title: '新建虚机开通' }
        },
        {
          path: '/init_equipment',
          component: () => import(/* webpackChunkName: "query" */ '@/components/page/initiate_equipment.vue'),
          meta: { title: '新建设备托管' }
        },
        {
          path: '/init_other',
          component: () => import(/* webpackChunkName: "query" */ '@/components/page/initiate_other.vue'),
          meta: { title: '新建风险操作' }
        },
        {
          path: '/done',
          component: () => import(/* webpackChunkName: "query" */ '@/components/page/already_done_order.vue'),
          meta: { title: '已办虚机开通' }
        },
        {
          path: '/done_equipment',
          component: () => import(/* webpackChunkName: "query" */ '@/components/page/already_done_order_equipment.vue'),
          meta: { title: '已办工单_设备托管' }
        },
				{
				  path: '/done_other',
				  component: () => import(/* webpackChunkName: "query" */ '@/components/page/AlreadyDoneOrdersOther.vue'),
				  meta: { title: '已办风险操作' }
				},
        {
          path: '/initiated',
          component: () => import(/* webpackChunkName: "query" */ '@/components/page/initiated_orders'),
          meta: { title: '在途虚机开通' }
        },
        {
          path: '/initiated_equipment',
          component: () => import(/* webpackChunkName: "query" */ '@/components/page/initiated_orders_equipment'),
          meta: { title: '在途设备托管' }
        },
				{
				  path: '/initiated_other',
				  component: () => import(/* webpackChunkName: "query" */ '@/components/page/InitiatedOrdersOther'),
				  meta: { title: '在途风险操作' }
				},
      ]
    },
    {
      path: '/login',
      component: () => import(/* webpackChunkName: "login" */ '@/components/page/Login.vue'),
      meta: { title: '登录' }
    },
  ]
});
